using System.Web.UI;

using QuickDev.Localization;

[assembly: TagPrefix("QuickDev.ServerControls", "QuickDev")]
namespace QuickDev.ServerControls
{

    [ToolboxData( "<{0}:Panel ID=\"PanelId\" runat=\"server\" />" )]
    public class Panel : System.Web.UI.WebControls.Panel
    {

        protected override void Render( HtmlTextWriter writer )
        {
            if ( !string.IsNullOrEmpty( this.ID ) && this.GroupingText.Length == 0 )
            {
                this.GroupingText = LocalizationUtility.GetText( this.ID );
            }
            base.Render( writer );
        }

    }
}
